package com.sctvcloud.longchang.ui.adapter.holder;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.sctvcloud.longchang.R;
import com.sctvcloud.longchang.beans.ImageInfo;
import com.sctvcloud.longchang.ui.util.IListShowData;
import com.sctvcloud.longchang.ui.utils.GlideUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PubHolder extends BaseRebllionHolder {
    @BindView(R.id.topublish)
    protected ImageView topublish;
    @BindView(R.id.mypublish)
    protected ImageView mypublish;
    Context context;


    public PubHolder(Context context, View itemView) {
        super(context, itemView);
        this.context =context;
    }

    @Override
    public void onDestory() {
        super.onDestory();
    }

    @Override
    protected void initInject() {
        ButterKnife.bind(this, itemView);
    }

    @Override
    public void setData(IListShowData iListShowData, boolean isEditing) {
        super.setData(iListShowData, isEditing);
    }



    @OnClick({R.id.topublish,R.id.mypublish})
    public void itemClick(View view) {
        switch (view.getId()) {
            case R.id.topublish:
                if (internalClick != null) {
                    internalClick.onItemInternalClick(itemView, view, getAdapterPosition());
                }
                break;
            case R.id.mypublish:
                if (internalClick != null) {
                    internalClick.onItemInternalClick(itemView, view, getAdapterPosition());
                }
                break;


        }
    }



}
